package com.huilang.principles.demo03;

import com.huilang.principles.demo03.impl.Cpu1Impl;
import com.huilang.principles.demo03.impl.CpuImpl;
import com.huilang.principles.demo03.impl.NeiCunTiaoImpl;
import com.huilang.principles.demo03.impl.YingPanImpl;

public class JiTest {
    public static void main(String[] args) {
        JiSuanJI jiSuanJI = new JiSuanJI();
        CpuImpl cpu = new CpuImpl();
        NeiCunTiaoImpl neiCunTiao = new NeiCunTiaoImpl();
        YingPanImpl yingPan = new YingPanImpl();
        jiSuanJI.setCpu(cpu);
        jiSuanJI.setCunTiao(neiCunTiao);
        jiSuanJI.setYingPan(yingPan);
        jiSuanJI.run();
    }
}
